package com.qf.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "banner")
public class Banner {
    /**
     * 主键
     */
    @TableId(value = "banner_id", type = IdType.INPUT)
    private Integer bannerId;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 轮播图的路径
     */
    @TableField(value = "img")
    private String img;

    /**
     * 1 表示启用  0 表示禁用
     */
    @TableField(value = "link_status")
    private Integer linkStatus;

    /**
     * 1 表示全部店铺,  2 表示指定店铺
     */
    @TableField(value = "link")
    private Integer link;

    /**
     * 0 表示不跳转商品信息 1  表示跳转商品链接
     */
    @TableField(value = "link_jump")
    private Integer linkJump;

    /**
     * 跳转的商品ID
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 1 表示pc端  2 表示 移动端
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 表示创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 0 不删除  1 表示删除
     */
    @TableField(value = "is_del")
    private Integer isDel;

    public static final String COL_BANNER_ID = "banner_id";

    public static final String COL_NAME = "name";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_IMG = "img";

    public static final String COL_LINK_STATUS = "link_status";

    public static final String COL_LINK = "link";

    public static final String COL_LINK_JUMP = "link_jump";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_TYPE = "type";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_IS_DEL = "is_del";
}